package com.ycy;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * define the process instance model
 */
public class ProcInstModel {

    private String procDefId;
    private String procDefKey;
    private String procDefName;
    private Integer procDefVer;

    private Date startTime;
    private Date endTime;
    private String appName;
    private String appDesc;
    private String procInstId;
    private String procInstName;
    private String businessKey;
    private String startUserId;
    private String deletedReason;

    private String superProcInstId;

    private String tenantId;

    private Map<String, Object> vars;
    private List<TaskInstModel> tasks;
    private Map<String, Object> idx;

    private Long version;

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppDesc() {
        return appDesc;
    }

    public void setAppDesc(String appDesc) {
        this.appDesc = appDesc;
    }

    public String getProcInstId() {
        return procInstId;
    }

    public void setProcInstId(String procInstId) {
        this.procInstId = procInstId;
    }

    public String getBusinessKey() {
        return businessKey;
    }

    public void setBusinessKey(String businessKey) {
        this.businessKey = businessKey;
    }

    public String getStartUserId() {
        return startUserId;
    }

    public void setStartUserId(String startUserId) {
        this.startUserId = startUserId;
    }

    public String getSuperProcInstId() {
        return superProcInstId;
    }

    public void setSuperProcInstId(String superProcInstId) {
        this.superProcInstId = superProcInstId;
    }

    public String getDeletedReason() {
        return deletedReason;
    }

    public void setDeletedReason(String deletedReason) {
        this.deletedReason = deletedReason;
    }

    public String getProcDefId() {
        return procDefId;
    }

    public void setProcDefId(String procDefId) {
        this.procDefId = procDefId;
    }

    public String getProcDefKey() {
        return procDefKey;
    }

    public void setProcDefKey(String procDefKey) {
        this.procDefKey = procDefKey;
    }

    public String getProcDefName() {
        return procDefName;
    }

    public void setProcDefName(String procDefName) {
        this.procDefName = procDefName;
    }

    public Integer getProcDefVer() {
        return procDefVer;
    }

    public void setProcDefVer(Integer procDefVer) {
        this.procDefVer = procDefVer;
    }

    public String getProcInstName() {
        return procInstName;
    }

    public void setProcInstName(String procInstName) {
        this.procInstName = procInstName;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Map<String, Object> getVars() {
        return vars;
    }

    public void setVars(Map<String, Object> vars) {
        this.vars = vars;
    }

    public List<TaskInstModel> getTasks() {
        return tasks;
    }

    public void setTasks(List<TaskInstModel> tasks) {
        this.tasks = tasks;
    }

    public Map<String, Object> getIdx() {
        return idx;
    }

    public void setIdx(Map<String, Object> idx) {
        this.idx = idx;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        return "ProcInstModel{" +
                "procDefId='" + procDefId + '\'' +
                ", procDefKey='" + procDefKey + '\'' +
                ", procDefName='" + procDefName + '\'' +
                ", procDefVer=" + procDefVer +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", appName='" + appName + '\'' +
                ", procInstId='" + procInstId + '\'' +
                ", procInstName='" + procInstName + '\'' +
                ", businessKey='" + businessKey + '\'' +
                ", startUserId='" + startUserId + '\'' +
                ", deletedReason='" + deletedReason + '\'' +
                ", superProcInstId='" + superProcInstId + '\'' +
                ", tenantId='" + tenantId + '\'' +
                ", vars=" + vars +
                ", tasks=" + tasks +
                ", idx=" + idx +
                ", version=" + version +
                '}';
    }
}
